<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="thx" uri="/thx-tags"%>

<form id="bookmark-form" name="ui-adminlte-form" data-toggle="validator"
	role="form" method="post"
	action="${pageContext.request.contextPath}/workflow/bookmark!save.action"
	forward-action="${pageContext.request.contextPath}/workflow/bookmark!list.action">
	<s:token></s:token>
	<input name="id" value="${entity.bookmarkId }" type="hidden"/>
	<div class="form-group">
		<label>标签名称</label> 
		<input type="text" name="entity.name"
			value="${entity.name}" class="form-control required"
			remote="${pageContext.request.contextPath}/workflow/bookmark!checkBookmarkName.action?id=${entity.bookmarkId}"
			placeholder="输入标签名称" />
	</div>
	<div class="form-group">
		<label>标签说明 </label> 
		<input type="text" name="entity.description"
			value="${entity.description}" class="form-control required"
			placeholder="输入标签说明" />
	</div>
	<div class="form-group">
		<label>标签备注 </label> 
		<input type="text" name="entity.text"
			value="${entity.text}" class="form-control"
			placeholder="输入标签备注" />
	</div>
</form>

<script>
	$(function(){
		form.init();
	});
</script>